import request from '@/utils/request'

// 创建企业标准修改
export function addEnterpriseEdit(data?: any) {
  return request({
    url: '/project/enterprise-standard-modify/create',
    method: 'POST',
    data,
  })
}
// 获得企业标准修改分页
export function getEnterpriseEditList(params?: any) {
  return request({
    url: '/project/enterprise-standard-modify/page',
    method: 'GET',
    params,
  })
}

// 获得企业标准修改
export function getEnterpriseEditInfo(params?: any) {
  return request({
    url: '/project/enterprise-standard-modify/get',
    method: 'GET',
    params,
  })
}

// 删除企业标准修改
export const deleteEnterpriseEdit = (id: number) => {
  return request({
    url: `/project/enterprise-standard-modify/delete?id=${id}`,
    method: 'DELETE',
  })
}
// 更新企业标准修改
export const updateEnterpriseEdit = (data: any) => {
  return request({
    url: '/project/enterprise-standard-modify/update',
    method: 'PUT',
    data,
  })
}

// 导出企业标准修改 Excel
export function getEnterpriseEditExport(params: any) {
  return request({
    url: '/project/enterprise-standard-modify/export-excel',
    method: 'GET',
    responseType: 'blob',
    params,
  })
}
